Skip to content

[LWDM] fix(LIVE-29443): add mobile swap status drawer infrastructure#18864

Open
philipptpunkt wants to merge 1 commit into
developfrom
feat/LIVE-29443-mobile-swap-status-infra
Open

[LWDM] fix(LIVE-29443): add mobile swap status drawer infrastructure#18864
philipptpunkt wants to merge 1 commit into
developfrom
feat/LIVE-29443-mobile-swap-status-infra

Conversation

@philipptpunkt

@philipptpunkt philipptpunkt commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Jira: https://ledgerhq.atlassian.net/browse/LIVE-29443

Summary

  • Add Mobile drawer lifecycle support needed by the swap status drawer.
  • Add the swapTransactionStatusDrawer reducer and root reducer/type registration.
  • Cover handleHeaderClosePressed so close tracking and duplicate close protection remain stable.

Review Scope

  • Primary: @ledgerhq/wallet-xp for generic QueuedDrawer behavior.
  • Additional: @ledgerhq/ptx for the swap status drawer reducer ownership.

Validation

  • Mobile QueuedDrawer focused Jest tests passed.

Stack (managed by stac-man)

@philipptpunkt philipptpunkt requested a review from a team as a code owner June 23, 2026 08:19
Copilot AI review requested due to automatic review settings June 23, 2026 08:19
@philipptpunkt philipptpunkt requested a review from a team as a code owner June 23, 2026 08:19
@live-github-bot live-github-bot Bot added the mobile Has changes in LLM label Jun 23, 2026
@live-github-bot live-github-bot Bot changed the title fix(LIVE-29443): add mobile swap status drawer infrastructure [LWM] fix(LIVE-29443): add mobile swap status drawer infrastructure Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Web Tools Build Status

Build Status Deployment
Web Tools Build ⏭️ Skipped
Native Storybook Build ⏭️ Skipped
React Storybook Build ⏭️ Skipped

@philipptpunkt philipptpunkt changed the title [LWM] fix(LIVE-29443): add mobile swap status drawer infrastructure [LWDM] fix(LIVE-29443): add mobile swap status drawer infrastructure Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ E2E tests are required

Changes detected require e2e testing before merge (even before asking for any review).

📱 Mobile

-> Run Mobile E2E

  • Select "Run workflow"
  • Branch: feat/LIVE-29443-mobile-swap-status-infra
  • Device: nanoX

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the missing Redux + drawer plumbing on Ledger Wallet Mobile to support an upcoming “Swap Transaction Status” bottom-sheet flow, and tightens the queued drawer close handling to reliably distinguish header-close intent from other close causes.

Changes:

  • Introduces a new swapTransactionStatusDrawer Redux slice (open/close + params) and wires it into the mobile root reducer + State typing.
  • Extends the queued drawer bottom-sheet hook/component to handle onHeaderClosePressed deterministically (and avoid duplicate onClose on subsequent dismiss signals).
  • Updates CODEOWNERS and adds unit coverage for the new header-close behavior in useQueuedDrawerBottomSheet.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
CODEOWNERS Assigns ownership for the new mobile swap status drawer reducer file.
apps/ledger-live-mobile/src/reducers/types.ts Adds the new slice type/import and includes it in the root State.
apps/ledger-live-mobile/src/reducers/swapTransactionStatusDrawer.ts New Redux Toolkit slice storing drawer open state + SwapTransactionStatusParams.
apps/ledger-live-mobile/src/reducers/index.ts Registers the new reducer in combineReducers.
apps/ledger-live-mobile/src/mvvm/components/QueuedDrawer/useQueuedDrawerBottomSheet.ts Adds onHeaderClosePressed support with guarded close sequencing.
apps/ledger-live-mobile/src/mvvm/components/QueuedDrawer/QueuedDrawerBottomSheet.tsx Routes BottomSheet onHeaderClosePressed through the hook handler.
apps/ledger-live-mobile/src/mvvm/components/QueuedDrawer/__tests__/useQueuedDrawerBottomSheet.test.ts Adds a regression test ensuring header-close triggers callbacks once and ignores later close events.

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 7 projects in monorepo, 7 projects with changes.

📊 Quick Summary
Project Total Size Change
desktop-main 2.6 MB -
desktop-preloader 7.1 KB -
desktop-renderer 81.2 MB -
desktop-webviewDappPreloader 36.9 KB -
desktop-webviewPreloader 200.0 B -
desktop-workers 36.8 KB -
mobile 258.7 MB -
📋 Detailed Reports (Click to expand)

📁 desktop-main

Path: rsdoctor/desktop-main/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 2.6 MB - -
📄 JavaScript 2.4 MB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 135.3 KB - -

📁 desktop-preloader

Path: rsdoctor/desktop-preloader/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 7.1 KB - -
📄 JavaScript 5.3 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 1.8 KB - -

📁 desktop-renderer

Path: rsdoctor/desktop-renderer/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 81.2 MB - -
📄 JavaScript 28.9 MB - -
🎨 CSS 172.6 KB - -
🌐 HTML 1.8 KB - -
📁 Other Assets 52.2 MB - -

📁 desktop-webviewDappPreloader

Path: rsdoctor/desktop-webviewDappPreloader/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 36.9 KB - -
📄 JavaScript 36.9 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 desktop-webviewPreloader

Path: rsdoctor/desktop-webviewPreloader/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 200.0 B - -
📄 JavaScript 200.0 B - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 desktop-workers

Path: rsdoctor/desktop-workers/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 36.8 KB - -
📄 JavaScript 36.8 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 mobile

Path: rsdoctor/mobile/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 258.7 MB - -
📄 JavaScript 108.7 MB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 150.0 MB - -

Generated by Rsdoctor GitHub Action

@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-swap-status-desktop branch from 73fa0e9 to 3c63647 Compare June 23, 2026 13:21
@philipptpunkt philipptpunkt requested review from a team as code owners June 23, 2026 13:21
@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-mobile-swap-status-infra branch from f4c4d45 to 75488d4 Compare June 23, 2026 13:22
Justkant
Justkant previously approved these changes Jun 23, 2026
@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-swap-status-desktop branch from 3c63647 to ddad409 Compare June 23, 2026 16:13
@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-mobile-swap-status-infra branch from 75488d4 to 7eadb5a Compare June 23, 2026 16:14
Copilot AI review requested due to automatic review settings June 23, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@live-github-bot

live-github-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Mobile Bundle Checks

Comparing 098a988 against 8bc062b.

✅ Previous issues have all been fixed.

@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-swap-status-desktop branch from ddad409 to df27b3c Compare June 23, 2026 17:03
@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-mobile-swap-status-infra branch from 7eadb5a to 9138418 Compare June 23, 2026 17:03
@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-swap-status-desktop branch from df27b3c to 5eddc1c Compare June 24, 2026 14:53
Copilot AI review requested due to automatic review settings June 24, 2026 14:53
@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-mobile-swap-status-infra branch from 9138418 to 73350df Compare June 24, 2026 14:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-swap-status-desktop branch from 5eddc1c to e60054b Compare June 24, 2026 15:05
@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-mobile-swap-status-infra branch from 73350df to 904dc9d Compare June 24, 2026 15:05
Base automatically changed from feat/LIVE-29443-swap-status-desktop to develop June 24, 2026 15:55
@philipptpunkt philipptpunkt dismissed Justkant’s stale review June 24, 2026 15:55

The base branch was changed.

@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-mobile-swap-status-infra branch from 904dc9d to df1604f Compare June 24, 2026 15:56
Copilot AI review requested due to automatic review settings June 24, 2026 16:42
@philipptpunkt philipptpunkt force-pushed the feat/LIVE-29443-mobile-swap-status-infra branch from df1604f to a4f9955 Compare June 24, 2026 16:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mobile Has changes in LLM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants